const { defineConfig } = require('@vue/cli-service')

const TerserPlugin = require('terser-webpack-plugin')


module.exports = defineConfig({
  transpileDependencies: true,
  productionSourceMap: false,
  devServer: {
    // 配置 start
    client: {
      overlay: false
    } // 配置 end
  },
  configureWebpack: {
    optimization: {
      minimize: true,
      minimizer: [
        new TerserPlugin({
          terserOptions: {
            compress: {
              drop_console: true // 删除所有的 `console` 语句
            }
          }
        })
      ]
    },
 
  }
})
